package com.lecyon.farm.common.enums;

import lombok.Getter;

/**
 * @author Yao Zheng
 * @Date 2020/3/4 19:42
 */
public enum TopicEnum {

    REGISTER("XMK10", "10", "主机在线注册指令"),
    HEART_BEAT("XMK11", "11", "心跳"),
    TIME_REVISION("XMK12", "12", "时间校对"),
    ACTIVELY_QUERY_TERMINAL_DATA("XMK20", "20", "终端数据查询并上报"),
    ACTIVELY_QUERY_SENSOR_DATA("XMK21", "21", "获取传感器数据"),
    ACTIVELY_QUERY_SWITCH_STATUS("XMK22", "22", "获取开关状态"),
    ACTIVELY_QUERY_UUIVERTOR_STATUS("XMK23", "23", "获取变频风机状态"),
    RECEIVE_TERMINAL_INITIATIVE_DATA("XMK24", "24", "终端数据上报"),
    MANUAL_CONTROL_UUIVERTOR_STATUS("XMK25", "25", "手动控制变频器控制状态上报"),
    ISSUE_CONTROL_INSTRUCTION_SWITCH_STATUS("XMK30", "30", "服务器下发控制指令(开关)"),
    ISSUE_CONTROL_INSTRUCTION_UUIVERTOR_STATUS("XMK31", "31", "服务器下发控制指令(变频)"),
    ISSUE_CONTROL_INSTRUCTION_IS_AUTO("XMK32", "32", "服务器下发控制指令(手自动切换)"),
    ISSUE_CONTROL_INSTRUCTION_PARAMETERS("XMK40", "40", "服务器下发控制指令(参数设置)"),
    ACTIVELY_QUERY_PARAMETERS("XMK41", "41", "服务器下发控制指令(读取参数设置)"),
    RECEIVE__PARAMETERS("XMK42", "42", "设备参数上报"),
    ;

    @Getter
    private final String topicValue;

    @Getter
    private final String commandId;

    @Getter
    private final String description;

    TopicEnum(String topicValue, String commandId, String description) {
        this.topicValue = topicValue;
        this.commandId = commandId;
        this.description = description;
    }

}
